<?php
# Application
define('APP', dirname(__file__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR);

# Framework
require APP.'fw'.DIRECTORY_SEPARATOR.'init.php';

# Connection
fw::connect();

$id = db::escape($_GET['id']);

if(strlen($id) != 13) exit();

db::query('INSERT INTO `'.DB_PREFIX.'upload` (`id`) VALUES ("'.$id.'")');